home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / pgp23src.zip / SRC / RSAGLUE.H < prev    next >
Text File  |  1993-06-11  |  1KB  |  27 lines

  1. /* rsaglue.h - RSA encryption and decryption */
  2.  
  3. /*
  4.  * If this is defined, and the appropriate changes are made in the makefile,
  5.  * a version of PGP that uses RSAREF will be generated.  Note, however, that
  6.  * RSAREF is distributed under a licence which does not permit access to the
  7.  * functions that PGP uses, so this is not legal in any country.  Stick with
  8.  * the non-RSAREF version, which is faster and only illegal in the U.S.
  9.  * (Negotiations to get permission to use the extra RSAREF functions are in
  10.  * progress, but an agreement has not been reached as of the time of release.)
  11.  */
  12. #undef RSAREF
  13.  
  14. /* Declarations */
  15. int
  16. rsa_public_encrypt(unitptr outbuf, byteptr inbuf, short bytes,
  17.      unitptr E, unitptr N);
  18. int
  19. rsa_private_encrypt(unitptr outbuf, byteptr inbuf, short bytes,
  20.      unitptr E, unitptr D, unitptr P, unitptr Q, unitptr U, unitptr N);
  21. int
  22. rsa_public_decrypt(byteptr outbuf, unitptr inbuf,
  23.     unitptr E, unitptr N);
  24. int
  25. rsa_private_decrypt(byteptr outbuf, unitptr inbuf,
  26.      unitptr E, unitptr D, unitptr P, unitptr Q, unitptr U, unitptr N);
  27.